<?php
$this->breadcrumbs=array(
	'Articles'=>array('index'),
	$model->arc_id,
);

$this->menu=array(
	array('label'=>'List Article', 'url'=>array('index')),
	array('label'=>'Create Article', 'url'=>array('create')),
	array('label'=>'Update Article', 'url'=>array('update', 'id'=>$model->arc_id)),
	array('label'=>'Delete Article', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->arc_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Article', 'url'=>array('admin')),
);
?>
<script type="text/javascript">
<!--
$(function(){

//	$.colorbox({
//		iframe:true, 
//		innerWidth:425, 
//		innerHeight:444,
//		href:'<?php echo $this->createUrl('/blog/view',array('id'=>$model->arc_id));?>',
//		onClosed:function(){ 
//
//		 }
//	 });


    $.msgbox({
	    height:100,
	    width:300,
	    content:{type:'confirm', content: '继续增加文章吗？<br /><br /><a class="example" href="<?php echo $this->createUrl('/blog/view',array('id'=>$model->arc_id));?>">预览一下</a>'},
	    animation:4,
	    onClose:function(v){
	        if(v){	                   
	        	location.href = '<?php echo $this->createUrl('create');?>';
	      
	        }else{
				location.href = '<?php echo $this->createUrl('list');?>';
	        }
	        
	    }
	}); 

});
//-->
</script>
<div class="column1" style="width:78%;">
	<h1>View Article #<?php echo $model->arc_id; ?></h1>
	
	<?php $this->widget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=>array(
			'arc_id',
			'arc_cid',
			'arc_title',
			'arc_iscomment',
			'arc_author',
			'arc_hits',
			'arc_created',
			'arc_update',
			'arc_tags',
			'arc_state',
			'arc_content',
		),
	)); ?>
</div>
<div class="column2" style="margin-left:80%;">
<h1></h1>
返回继续添加新闻
</div>
<?php $this->widget('ext.box.colorbox.colorboxWidget',array(
		'id'=>'.example',
		'theme'=>'example1',
		'options'=>'width:"90%", height:"90%", iframe:true'
));?> 
